package com.house.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import org.springframework.stereotype.Component;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
public class Menu implements Serializable {

    private int menuId;

    private int parentId;

    private String menuName;

    private String routeName;

    private int menuStatus;

    private String description;

    private String icon;

    private int sort;

    @TableField(value = "create_user", fill = FieldFill.INSERT) //插入时填充字段
    private Long createUser;

    @TableField(value = "update_user", fill = FieldFill.INSERT_UPDATE) //插入和更新时填充字段
    private Long updateUser;

    @TableField(value = "create_time", fill = FieldFill.INSERT) //插入时填充字段
    private LocalDateTime createTime;

    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE) //插入和更新时填充字段
    private LocalDateTime updateTime;

}
